<template>
  <div id="app">
       <Header @toLink="toLink"></Header>
        <router-view/>
       <Footer></Footer>
  </div>
</template>

<script>
  import Header from '@/layout/Header.vue'
  import Footer from '@/layout/Footer.vue'
export default {
  name: 'app',
  components: {
    Header,
    Footer
  },
  methods:{
    toLink(e){
      console.log(e);
      this.$router.push("/Home")
    }
  }
}
</script>

<style>

</style>
